﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EmailComponent
{
    class Program
    {
        static void Main(string[] args)
        {
            Email emailComponent = new Email();

            emailComponent.MailFrom = "Krishna C. Mukherjee";
            emailComponent.MailSubject = "Test Email";
            emailComponent.MailTo.Add("krismukh@hotmail.com");
            emailComponent.MailBody = "This is a test email from Krishna C. Mukherjee.";
            emailComponent.SMTPServer = "<Server Name>";
            emailComponent.SMTPServer = "<User Name>";
            emailComponent.SMTPPassword = "<Password>";
            emailComponent.Send();
        }
    }
}
